<?php
require_once("A2zViewHandler.php");
Abstract class A2zAction{
	public function run(){
		$outGoingViewHandler = $this ->executeAction();
		$_viewId = $this ->getViewId();
		//Put viewHandler in session
		session_start();
		$_SESSION[$_viewId] = serialize($outGoingViewHandler);
		
		header("Location: ".$outGoingViewHandler -> getView()); 
		
	}	
	abstract public function executeAction();	
	abstract public function getViewId();	
}
?>